﻿namespace TestDDD.CustomAttribute
{
    [AttributeUsage(AttributeTargets.Method, Inherited = true)]
    public class UseTransactionAttribute(TransactionType transactionType = TransactionType.UnitOfWorkTransation) : Attribute
    {
        public TransactionType TransactionType { get; set; } = transactionType;
    }

    public enum TransactionType
    {
        DbTransaction,
        UnitOfWorkTransation
    }
}
